﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using OpenNETCF.Bookshare.Services.ISBNDB;

namespace OpenNETCF.Bookshare.Services
{
    internal class IsbnDbService : IBookInfoService
    {
        public int Priority { get; set; }
        public bool IsAvailable { get; set; }

        private IsbnDbRequestEngine RequestEngine { get; set; }

        public IsbnDbService()
        {
            RequestEngine = new IsbnDbRequestEngine();
        }

        public string LookupByISBN(string isbn)
        {
            var request = new IsbnLookupRequest(isbn);

            var response = RequestEngine.ProcessRequest(request);

            return string.Empty;
        }

        public string LookupByAuthor(string name)
        {
            var request = new AuthorNameLookupRequest(name);

            var response = RequestEngine.ProcessRequest(request);

            return string.Empty;
        }
    }
}
